package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.BaseArticle;
import com.ruoyi.quartz.mapper.BaseArticleMapper;
import com.ruoyi.quartz.service.IBaseArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseArticleService implements IBaseArticleService {

    @Resource
    private BaseArticleMapper baseArticleMapper;

    @Override
    public List<BaseArticle> selectAll(BaseArticle baseArticle) {
        return baseArticleMapper.selectAll(baseArticle);
    }

    @Override
    public BaseArticle selectArticleById(Integer art_id) {
        return baseArticleMapper.selectArticleById(art_id);
    }

    @Override
    public int insertArticle(BaseArticle baseArticle) {
        return baseArticleMapper.insertArticle(baseArticle);
    }

    @Override
    public int updateArticle(BaseArticle baseArticle) {
        return baseArticleMapper.updateArticle(baseArticle);
    }

    @Override
    public int deleteArticleByIds(Integer[] art_ids) {
        return baseArticleMapper.deleteArticleByIds(art_ids);
    }
}
